package com.easy.common.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@Setter
@Getter
@ToString
@TableName("seckill_order")
public class SeckillOrder implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;//秒杀订单id
    private Integer user_id;
    private Integer seckill_goods_id;
    private Integer activity_id;//活动id
    private Integer order_addr_id;
    private Integer delivery_addr_id;
    private String seckill_goods_name;
    private BigDecimal seckill_goods_price;
    private Integer status;//订单状态(0:未支付,1:已支付,2:已发货,3:已完成)
    private LocalDateTime create_time;
    private LocalDateTime pay_time;
    private LocalDateTime send_time;//发货时间
    private LocalDateTime get_time;//确认收货时间
    private Integer is_del;
}
